/*************************************************************************
	> File Name: resume.h
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年11月25日 星期四 18时28分00秒
 ************************************************************************/

#include<iostream>
#include <string>

class Resume
{
public:
	Resume(std::string n, std::string s, std::string a, std::string t, std::string c) : 
		name(n), 
		sex(s), 
		age(a), 
		timeArea(t), 
		company(c) {}
	Resume(std::string n) : name(n) {}

	void setPersonalInfo(std::string s, std::string a)
	{
		this->sex = s;
		this->age = a;
	}

	void setWorkExperience(std::string t, std::string c)
	{
		this->timeArea = t;
		this->company = c;
	}

	void display()
	{
		std::cout << name << " " << sex << " " << age << std::endl;
		std::cout << "工作经历：" << timeArea << " " << company << std::endl;
	}

	Resume* clone()
	{
		return new Resume(*this);
	}

private:
	std::string name;
	std::string sex;
	std::string age;

	std::string timeArea;
	std::string company;
};
